package com.fuyo.app.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class TestSchedule {

    private static Logger logger = LoggerFactory.getLogger(TestSchedule.class);

    @Scheduled(cron = "0 0/2 * * * *")
    public void test() {
        logger.info("schedule");
    }
}
